import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

import {ApplicationPage} from './application.page';

const routes: Routes = [
    {
        path: '',
        component: ApplicationPage
    },
    {
        path: 'productShow',
        loadChildren: () => import('./product-show/product-show.module').then(m => m.ProductShowPageModule),
        data: {title: '产品展示'}
    },
    {
        path: 'threeDimensional',
        loadChildren: () => import('./three-dimensional/three-dimensional.module').then(m => m.ThreeDimensionalPageModule),
        data: {title: '产品秀（3维）'}
    },
    {
        path: 'productArchive',
        loadChildren: () => import('./product-archive/product-archive.module').then(m => m.ProductArchivePageModule),
        data: {title: '产品档案（详情）'}
    },
    {
        path: 'malfunctionRepair',
        loadChildren: () => import('./malfunction-repair/malfunction-repair.module').then(m => m.MalfunctionRepairPageModule),
        data: {title: '故障报修'}
    },
    {
        path: 'dynamicCertification',
        loadChildren: () => import('./dynamic-certification/dynamic-certification.module').then(m => m.DynamicCertificationPageModule),
        data: {title: '动态鉴伪'}
    },
    {
        path: 'suggestions',
        loadChildren: () => import('./suggestions/suggestions.module').then(m => m.SuggestionsPageModule),
        data: {title: '投诉及建议'}
    },
    {
        path: 'qualityTraceability',
        loadChildren: () => import('./quality-traceability/quality-traceability.module').then(m => m.QualityTraceabilityPageModule),
        data: {title: '质量追溯'}
    }


];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule],
})
export class ApplicationPageRoutingModule {
}
